home *** CD-ROM | disk | FTP | other *** search
- global roomnumber, vrpict, light, objectpict, returnlist, objmarker
-
- on plananimation
- global plan, aniflag
- set currcast to the memberNum of sprite plan
- if aniflag = 1 then
- repeat while currcast < 4
- set currcast to currcast + 1
- set the memberNum of sprite plan to currcast
- updateStage()
- end repeat
- set aniflag to 0
- else
- repeat while currcast > 1
- set currcast to currcast - 1
- set the memberNum of sprite plan to currcast
- updateStage()
- end repeat
- set aniflag to 1
- end if
- end
-
- on selectmenu
- global roomname, objnamesprite, nodepict
- if the mouseCast > 0 then
- case the name of the mouseMember of
- "MainMenu":
- go("MainMenu")
- "FloorMenu":
- go("FloorMenu")
- "Plan 1", "Plan 2", "Plan 3":
- go("Plan" && the last char in the name of the mouseMember)
- end case
- if not rollOver(120) then
- set the visible of sprite light to 0
- set the visible of sprite objnamesprite to 0
- updateStage()
- puppetSprite(objectpict, 0)
- if rollOver(94) then
- if (roomnumber <> "109") and (roomnumber <> "304") and (roomnumber <> "311") and (roomnumber <> "315") then
- puppetSprite(nodepict, 0)
- if roomnumber <> "000" then
- set the visible of sprite objmarker to 1
- end if
- go(the frame + 1)
- end if
- end if
- end if
- end if
- end
-
- on setreturnframe
- global returnframe
- set returnframe to the frame + 1
- end
-
- on towhichfloor number
- global nodeplan, nodepict, roomnumber, compassline1, compassline2, audioguidesprite
- if roomnumber <> number then
- unLoad("Room", "Exit")
- puppetSprite(nodepict, 0)
- puppetSprite(objectpict, 0)
- puppetSprite(compassline1, 0)
- puppetSprite(compassline2, 0)
- puppetSprite(audioguidesprite, 0)
- set the visible of sprite nodeplan to 0
- set the visible of sprite compassline1 to 0
- set the visible of sprite compassline2 to 0
- set the visible of sprite audioguidesprite to 0
- plananimation()
- closemovie()
- showcast("R" & number)
- set roomnumber to number
- if number = "000" then
- go(1)
- else
- go(label("First") + 1)
- end if
- end if
- end
-
- on towhichroom number
- global audioguidesprite
- set the visible of sprite light to 0
- updateStage()
- setProp(returnlist, #flag, 0)
- set roomnumber to number
- set the visible of sprite audioguidesprite to 1
- if number = "000" then
- openqtvr("invisible")
- go(label("Room") + 2)
- else
- go("Room")
- end if
- end
-
- on gotoindex
- global roomnumber
- if (roomnumber <> "100") and (roomnumber <> "200") and (roomnumber <> "300") then
- go("IndexList", "Index1")
- end if
- end
-